# coding=utf-8
"""
Author: Mr.夏末
@Function: 分支
"""
# x,y是整数，z = |x| + |y|
x = input("请输入x:")
y = input("请输入y:")
# 强转为整数
x, y = int(x), int(y)
z = x + y
print(z)

# if x >= 0 and y >= 0:
#     z = x + y
# elif x >= 0 and y < 0:
#     z = x - y
# elif x < 0 and y >= 0:
#     z = -x + y
# else:
#     z = -x - y
# print(z)

if x >= 0:
    if y >= 0:
        z = x + y
    else:
        x = x - y
else:
    if y >= 0:
        z = -x + y
    else:
        z = -x - y

print(z)
